package cn.com.landsky.camera.common.hikvision;

import lombok.Getter;
import lombok.Setter;

/***
 ** @category 海康返回的结构体...
 ** @author qing.yunhui
 ** @email: qingyunhui@fentuan360.com
 ** @createTime: 2019/1/4-16:12
 **/
@Getter
@Setter
public class ResultData {

    /**返回码**/
    private String code;
    /**返回信息**/
    private String msg;
    /**返回详细数据*/
    private String data;

    /**
     * 接口调用成功
     * */
    public boolean success(){
        return HikvisionConstant.SUCCESS_CODE.equals(code) && HikvisionConstant.SUCCESS_MSG.equalsIgnoreCase(msg);
    }

}
